<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>绑定鼠标事件</title>
    <script src="js/vuejs-2.5.16.js"></script>
    <style TYPE="text/css">
        .box{
            width: 200px;
            height: 100px;
            border: 1px solid blue;
        }
    </style>
</head>
<body>
<div id="app">
    <div class="box" @mouseover="fn1()" @mouseout="fn2()"></div>
</div>
<script type="text/javascript">
    new Vue({
        el:"#app",
        data:{

        },
        methods:{
            fn1(){
                alert("你是傻逼0....")

            },
            fn2(){
                alert("你是大傻逼...")
            }
        }

    });
</script>

</body>
</html>